{if $action == 'resume_invite'}
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset={DT_CHARSET}">
	<title>Loading...</title>
</head>
<body onLoad="document.getElementById('invite').submit();">
<form action="{$MODULE[2][linkurl]}message.php" method="post" id="invite">
	<input type="hidden" name="action" value="send" />
	<input type="hidden" name="touser" value="{$apply[apply_username]}" />
	<input type="hidden" name="title" value="{$title}" />
	<textarea name="content" style="display:none;">
		{$resume[truename]}，您好：<br/><br/>
		已经收到您向 <a href="{$joburl}" target="_blank">{$job[title]}</a> 投递的简历，现邀请您面试。<br/><br/>
		联系人：{$job[truename]}<br/>
		联系电话：{$job[telephone]}<br/>
		电子邮件：{$job[email]}<br/>
		{if $job[mobile]}联系手机：{$job[mobile]}<br/>{/if}
		{if $job[address]}联系地址：{$job[address]}<br/>{/if}
		{if $job[qq]}联系QQ：{$job[qq]}<br/>{/if}
		{if $job[msn]}联系MSN：{$job[msn]}<br/>{/if}
	</textarea>
</form>
</body>
</html>
{else}
{template 'header', 'member'}
<div class="main-block bd-gray mt10">
	<div class="hd fn-clear">
		<h2 class="fn-left">发布简历</h2>
	</div>
	<ul id="data-nav" class="main-nav mt10 fn-clear">
		<li id="status_7"><a href="{url('member/my')}?mid={$mid}&resume=1&action=add&statu=7">创建简历</a></li>
		{if $_userid}
		<li id="status_3"><a href="{url('member/my')}?mid={$mid}&resume=1&status=3">已发布({$nums[3]})</a></li>
		<li id="status_2"><a href="{url('member/my')}?mid={$mid}&resume=1&status=2">审核中({$nums[2]})</a></li>
		<li id="status_1"><a href="{url('member/my')}?mid={$mid}&resume=1&status=1">未通过({$nums[1]})</a></li>
		<li id="status_5"><a href="{url('member/my')}?mid={$mid}&resume=1&action=apply&status=5">应聘职位({$nums[apply]})</a></li>
		{/if}
	</ul>
{if $action=='add' || $action=='edit'}
	<form id="pub-form" name="pub-form" method="post" action="{url('member/my')}">
	<input type="hidden" name="action" value="{$action}"/>
	<input type="hidden" name="mid" value="{$mid}"/>
	<input type="hidden" name="resume" value="1"/>
	<input type="hidden" name="itemid" value="{$itemid}"/>
	<input type="hidden" name="forward" value="{$forward}"/>
	<table class="data-form">
	{if $status==1 && $action=='edit' && $note}
	<tr>
		<th width="90">未通过原因</th>
		<td class="tr f_blue">{$note}</td>
	</tr>
	{/if}
<tr>
	<th width="90"><span class="cred">*</span> 简历名称</th>
	<td width="640"><input name="post[title]" type="text" id="title" size="50" class="graybd-ipt easyui-validatebox" data-options="required:true,validType:'length[3,50]',invalidMessage:'长度在3-50内',missingMessage:'请填写简历名称'" value="{$title}"/> <span id="dtitle" class="cred"></span></td>
</tr>
<tr>
	<th width="90"><span class="cred">*</span> 行业/职位</th>
	<td width="640">{Post::catTree('post[catid]', $moduleid, '选择分类' ,$catid, 'class="easyui-validatebox" data-options="required:true,missingMessage:\'请选择行业/职位\'"')} <span id="dcatid" class="cred"></span></td>
</tr>
<tr>
	<th width="90"><span class="cred">*</span> 真实姓名</th>
	<td width="640"><input name="post[truename]" type="text" id="truename" size="20" class="graybd-ipt easyui-validatebox" data-options="required:true,validType:'length[1,50]',missingMessage:'请填写简历名称'"  value="{$truename}"/>
		<br/><span id="dtruename" class="cred"></span></td>
</tr>

<tr>
	<th width="90">免冠照片</th>
	<td>{Post::picture($moduleid, 'thumb', 'post[thumb]', $thumb ,$MOD['thumb_width'], $MOD['thumb_height'])}</td>
</tr>

<tr>
	<th width="90"><span class="cred">*</span> 性别</th>
	<td width="640">
		{loop $GENDER $k $v}
			{if $k > 0}
				<input class="nobd fn-left mr5" type="radio" name="post[gender]" id="gender_{$k}" value="{$k}"{if $k == $gender} checked{/if}/>
                <label class="fn-left mr10" for="gender_{$k}"> {$v}</label>
			{/if}
		{/loop}
	</td>
</tr>

<tr>
	<th width="90"><span class="cred">*</span> 婚姻状况</th>
	<td width="640">
		{loop $MARRIAGE $k $v}
			{if $k > 0}
				<input class="nobd fn-left mr5" type="radio" name="post[marriage]" id="marriage_{$k}" value="{$k}"{if $k == $marriage} checked{/if}/>
                <label class="fn-left mr10" for="marriage_{$k}"> {$v}</label>
			{/if}
		{/loop}
	</td>
</tr>

<tr>
	<th width="90"><span class="cred">*</span> 现居住地</th>
	<td width="640">
		{if $action == 'add'}
		{Post::areaCombo('post[areaid]', $userInfo[areaid], '', '', $moduleid )}
		{elseif $action =='edit'}
		{Post::areaCombo('post[areaid]', $areaid, '', '', $moduleid )}
		{/if}
	<span id="dareaid" class="cred"></span></td>
</tr>

<tr>
<th width="90"><span class="cred">*</span> 生日</th>
<td width="640">
<input name="post[byear]" type="text" id="byear" size="4" value="{$byear}" class="easyui-validatebox graybd-ipt" /> 年
<select name="post[bmonth]" class="easyui-validatebox graybd-ipt" >
	{php for($i = 1; $i < 13; $i++) { }
<option value="{$i}"{if $i == $bmonth} selected{/if}>{$i}</option>
{php } }
</select>
月
<select name="post[bday]" class="easyui-validatebox graybd-ipt" >
{php for($i = 1; $i < 32; $i++) { }
<option value="{$i}"{if $i == $bday} selected{/if}>{$i}</option>
{php } }
</select>
日

<span id="dbyear" class="cred"></span>
</td>
</tr>

<tr>
<th width="90">身高</th>
<td width="640"><input name="post[height]" type="text" id="height" size="10" value="{$height}" class="easyui-validatebox graybd-ipt" /> cm <span id="dheight" class="cred"></span></td>
</tr>

<tr>
<th width="90">体重</th>
<td width="640"><input name="post[weight]" type="text" id="weight" size="10" value="{$weight}" class="easyui-validatebox graybd-ipt" /> kg <span id="dweight" class="cred"></span></td>
</tr>

<tr>
<th width="90"><span class="cred">*</span> 学历</th>
<td cwidth="640">
{loop $EDUCATION $k $v}
{if $k > 0}
    <input class="nobd fn-left mr5" type="radio" name="post[education]" id="education_{$k}" value="{$k}"{if $k == $education} checked{/if}/>
    <label class="fn-left mr10" for="education_{$k}"> {$v}</label>
{/if}
{/loop}
</td>
</tr>

<tr>
<th width="90"><span class="cred">*</span> 毕业院校</th>
<td width="640"><input name="post[school]" type="text" id="school" size="30" class="graybd-ipt easyui-validatebox" data-options="required:true,validType:'length[3,50]',invalidMessage:'长度在3-50内',missingMessage:'请填写毕业院校'"   value="{$school}"/> <span id="dschool" class="cred"></span></td>
</tr>

<tr>
<th width="90">所学专业</th>
<td width="640"><input name="post[major]" type="text" id="major" class="easyui-validatebox graybd-ipt"  size="30" value="{$major}"/></td>
</tr>

<tr>
<th width="90">专业技能</th>
<td width="640"><input name="post[skill]" type="text" class="easyui-validatebox graybd-ipt"  size="50" value="{$skill}"/></td>
</tr>

<tr>
<th width="90">语言水平</th>
<td width="640"><input name="post[language]" type="text"   class="easyui-validatebox graybd-ipt"  size="50" value="{$language}"/></td>
</tr>


<tr>
<th width="90"><span class="cred">*</span> 工作性质</th>
<td width="640">
{loop $TYPE $k $v}
{if $k > 0}
    <input class="nobd fn-left mr5" type="radio" name="post[type]" id="type_{$k}" value="{$k}"{if $k == $type} checked{/if}/>
    <label class="fn-left mr10" for="type_{$k}"> {$v}</label>
{/if}
{/loop}
</td>
</tr>

<tr>
<th width="90">期望薪资</th>
<td width="640"><input name="post[minsalary]" type="text" id="minsalary" class="easyui-validatebox graybd-ipt"  size="6" value="{$minsalary}"/> 至 <input name="post[maxsalary]" class="easyui-validatebox graybd-ipt"  type="text" id="maxsalary" size="6" value="{$maxsalary}"/>
	{$DT[money_unit]}/月 (不填或者填0为不限)
	<span id="dmaxsalary"></span>
</td>
</tr>

<tr>
<th width="90"><span class="cred">*</span> 工作经验</th>
<td width="640">
<input type="text" name="post[experience]" value="{$experience}" size="4" class="graybd-ipt easyui-validatebox" data-options="required:true,validType:'length[1,50]',missingMessage:'请填写工作经验'"   id="experience"/> &nbsp;&nbsp;年 <span id="dexperience" class="cred"></span></td>
</tr>

{if $FD}{fields_html('<td class="tl">', '<td class="tr">', $item)}{/if}

<tr>
<th width="90"><span class="cred">*</span> 自我鉴定</th>
	<td width="640">
		{Post::kindEditor('post[content]', $moduleid, $content, 'datatype="*5-99999" nullmsg="请填写自我鉴定" errormsg="自我鉴定最少5字"','675px')}
	</td>
</tr>

<tr>
<th width="90"><span class="cred">*</span> 联系手机</th>
<td width="640"><input name="post[mobile]" id="mobile" type="text" class="graybd-ipt easyui-validatebox" data-options="required:true,validType:'length[3,50]',missingMessage:'请填写联系手机'"    size="30"  value="{$mobile}"/> <span id="dmobile" class="cred"></span></td>
</tr>
<tr>
<th width="90"><span class="cred">*</span> 电子邮件</th>
<td width="640"><input name="post[email]" id="email" type="text" class="graybd-ipt easyui-validatebox" data-options="required:true,validType:'length[3,50]',missingMessage:'请填写联系手机'"  size="30"  value="{$email}" /> <span id="demail" class="cred"></span></td>
</tr>
<tr>
<th width="90">联系电话</th>
<td width="640"><input name="post[telephone]" id="telephone" type="text" class="easyui-validatebox graybd-ipt" size="30" value="{$telephone}"/> <span id="dtelephone" class="cred"></span></td>
</tr>
<tr>
<th width="90">联系地址</th>
<td width="640"><input name="post[address]" type="text" size="60" class="easyui-validatebox graybd-ipt"  value="{$address}"/></td>
</tr>
<tr>
<th width="90">联系MSN</th>
<td width="640"><input name="post[msn]" type="text" size="30" class="easyui-validatebox graybd-ipt" value="{$msn}"/></td>
</tr>
<tr>
<th width="90">联系QQ</th>
<td width="640"><input name="post[qq]" type="text" size="30" class="easyui-validatebox graybd-ipt"  value="{$qq}"/></td>
</tr>

<tr>
<th width="90">求职状态</th>
<td width="640">
<select name="post[situation]" class="easyui-validatebox graybd-ipt" >
{loop $SITUATION $k $v}
<option value="{$k}"{if $k==$situation} selected{/if}>{$v}</option>
{/loop}
</select>
</td>
</tr>

<tr>
<th width="90">公开程度</th>
<td class="tr">
    <input id="openR" class="nobd fn-left mr5" type="radio" name="post[open]" value="3"{if $open==3} checked{/if}/>
    <label for="openR" class="fn-left mr10">开放</label>
    <input id="forsite" class="nobd fn-left mr5" type="radio" name="post[open]" value="2"{if $open==2} checked{/if}/>
    <label for="forsite" class="fn-left mr10">仅网站可见</label>
    <input id="closeR" class="nobd fn-left mr5" type="radio" name="post[open]" value="1"{if $open==1} checked{/if}/>
    <label id="closeR" class="fn-left mr10">关闭</label>
</td>
</tr>

{if $need_captcha}
<tr>
<th width="90"><span class="cred">*</span> 验证码</th>
<td class="tr">{template 'captcha', 'chip'} <span id="dcaptcha" class="cred"></span></td>
</tr>
{/if}
<tr>
<th width="90">&nbsp;</th>
<td class="tr" height="50">
	<button type="submit" class="btn fn-left mr10">提交</button>
	<input type="button" value="返回" class="btn fn-left" onclick="history.back(-1);"/>
</td>
</tr>
</table>
</form>
	<script type="text/javascript">
		seajs.use(['$', 'easyui','easyui-css'], function ($) {
			$("#pub-form").form();
		});
	</script>
{elseif $action=='apply'}
	<div class="filter con fn-clear">
	<form action="{url('member/my')}">
	<input type="hidden" name="mid" value="{$mid}"/>
	<input type="hidden" name="resume" value="1"/>
	<input type="hidden" name="action" value="{$action}"/>
		{Post::catTree('catid', $moduleid, '行业/职位', $catid, 'class="fn-left mr10"')}
		<input class="fn-left mr10" type="text" name="kw" value="{$kw}" title="关键词" size='60'/>&nbsp;
		<button class="btn fn-left mr20" type="submit">搜索</button>
		<button class="btn fn-left" type="reset" onclick="window.location='{url('member/my')}?mid={$mid}&resume=1&action={$action}';">重置</button>
	</form>
	</div>
	<table class="filter-tb mt10 c000 con">
		<thead>
			<tr class="c666">
			<th width='100'>招聘信息</th>
			<th width='200'>我的简历</th>
			<th width='140'>应聘时间</th>
			<th width='70'>状态</th>
			<th width="100">管理</th>
			</tr>
		</thead>
		<tbody id="pub-list">
{loop $lists $k $v}
<tr>
<td align="left">&nbsp;&nbsp;&nbsp;<a href="{url('job/show', 'itemid='.$v['jobid'])}" target="_blank" class="t">{$v[title]}</a></td>
<td align="left">&nbsp;&nbsp;<a href="{url('talent/show', 'itemid='.$v['resumeid'])}" target="_blank" class="t">{$v[resumetitle]}</a></td>
<td class="f_gray px11">{timetodate($v[applytime], 5)}</td>
<td>&nbsp;&nbsp;
{if $v[status] == 3}
<span class="f_blue">邀请面试</span>
{elseif $v[status] == 2}
已查看
{elseif $v[status] == 1}
<span class="f_gray">未查看</span>
{elseif $v[status] == 0}
<span class="cred">已拒绝</span>
{/if}
&nbsp;&nbsp;
</td>
<td class="pub-oper">
<a class="del" href="{url('member/my')}?mid={$mid}&resume=1&action=apply_delete&itemid={$v[applyid]}" onclick="return confirm('确定要删除吗？此操作将不可撤销');"><img width="16" height="16" src="image/delete.png" title="删除" alt=""/></a>
</td>
</tr>
{/loop}
		</tbody>
	</table>
	<div class="pages con fn-clear">
		<span class="sum fn-right">共{php echo $do->getPn()->getPages()}页</span>
		<ul class="fn-right fn-clear">
			{php $do->getPn()->render()}
		</ul>
	</div>
{else}
<div class="filter con fn-clear">
	<form action="{url('member/my')}">
	<input type="hidden" name="mid" value="{$mid}"/>
	<input type="hidden" name="resume" value="1"/>
	<input type="hidden" name="status" value="{$status}"/>
	{Post::catTree('catid', $moduleid, '行业/职位', $catid, 'class="fn-left mr10"')}
		<input class="fn-left mr10" type="text" name="kw" value="{$kw}" title="关键词" size='60'/>&nbsp;
		<button class="btn fn-left mr20" type="submit">搜索</button>
		<button class="btn fn-left" type="reset" onclick="window.location='{url('member/my')}?mid={$mid}&status={$status}';">重置</button>
</form>
</div>
	<table class="filter-tb mt10 c000 con">
		<thead>
			<tr class="c666">
				<th width='200'>标 题</th>
				<th width='120'>行 业</th>
				<th width='80'>职 位</th>
				<th width='80'>更新时间</th>
				<th width='70'>状态</th>
				<th width='50'>浏览</th>
				<th width="130">管理</th>
			</tr>
		</thead>
		<tbody id="pub-list">
{loop $lists $k $v}
<tr>
<td align="left">&nbsp;&nbsp;&nbsp;{if $v[status]==3}<a href="{url('talent/show', 'itemid='.$v['itemid'])}" target="_blank" class="t">{else}<a href="{url('member/my')}?mid={$mid}&resume=1&action=edit&itemid={$v[itemid]}" class="t">{/if}{$v[title]}</a>{if $v[status]==1 && $v[note]} <a href="javascript:" onclick="alert('{$v[note]}');"><img src="image/why.gif" title="未通过原因"/></a>{/if}</td>
<td>&nbsp;{$CATEGORY[$v[parentid]][catname]}&nbsp;</td>
<td>{$CATEGORY[$v[catid]][catname]}</td>
<td class="c666" title="添加时间 {timetodate($v[addtime], 5)}">{timetodate($v[edittime], 4)}</td>
<td>
{if $v[open] == 3}
开放
{elseif $v[open] == 2}
<span class="f_blue">网站可见</span>
{elseif $v[open] == 1}
<span class="cred">关闭</span>
{else}
&nbsp;
{/if}
</td>
<td class="c666">{$v[hits]}</td>
<td class="pub-oper">
<a class="edit-link" href="{url('member/my')}?mid={$mid}&resume=1&action=edit&itemid={$v[itemid]}"><img width="16" height="16" src="image/edit.png" title="修改" alt=""/></a>
<a class="copy" href="{url('member/my')}?mid={$mid}&resume=1&action=add&itemid={$v[itemid]}&catid={$v[catid]}"><img width="16" height="16" src="image/new.png" title="复制简历" alt=""/></a>
<a class="del" href="{url('member/my')}?mid={$mid}&resume=1&action=delete&itemid={$v[itemid]}" onclick="return confirm('确定要删除吗？此操作将不可撤销');"><img width="16" height="16" src="image/delete.png" title="删除" alt=""/></a>
</td>
</tr>
{/loop}
</tbody>
</table>
{if $MG[resume_limit] || (!$MG['fee_mode'] && $MOD[fee_add])}
<div class="con">
{if $MG[resume_limit]}
总共可发 <span class="f_b cred">{$MG[resume_limit]}</span> 条&nbsp;&nbsp;&nbsp;
当前已发 <span class="f_b">{$limit_used}</span> 条&nbsp;&nbsp;&nbsp;
还可以发 <span class="f_b f_blue">{$limit_free}</span> 条&nbsp;&nbsp;&nbsp;
{/if}
</div>
{/if}
	<div class="pages con fn-clear">
		<span class="sum fn-right">共{php echo $do->getPn()->getPages()}页</span>
		<ul class="fn-right fn-clear">
			{php $do->getPn()->render()}
		</ul>
	</div>
{/if}
{if $action == 'add' || $action == 'edit'}
<script type="text/javascript">
	seajs.use(['$', 'vf', 'vf-css', 'easyui','easyui-css'], function($){
		$('#dform').Validform({
			beforeCheck:function(curform){
				lemon.editor.post_content_.sync();
			}
		});
	})
</script>
{/if}
<script type="text/javascript">
		seajs.use(['member'], function(member){
			member.active('menu_info', 'mid_resume', 'status_{if $statu}{$statu}{else}{$status}{/if}')
		})
</script>
</div>
{template 'footer', 'member'}
{/if}